package com.flower.mapper;

import com.flower.entity.Catalog;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;


/**
 * CatalogMapper 数据访问接口
 * @date 2019-03-09 12:00:04
 * @version 1.0
 */
public interface CatalogMapper extends Mapper<Catalog>{


//     根据cId更新
    void updateById(Catalog catalog);

    @Select("SELECT  cid id ,cname text  FROM catalog")
    List<Map<String,Object>> findAll();
}